<h4 style="text-align:left;"><{$lang_faq}></h4>
<table width="100%" cellspacing="1" class="outer">
  <tr>
    <th><{$lang_categories}></th>
  </tr>
  <tr>
    <td class="even">

      <!-- start category loop -->
      <{foreach item=category from=$categories}>
        &nbsp;&nbsp;<img src="<{$xoops_url}>/modules/xoopsfaq/images/folder.gif" width="14" height="14" border="0" alt="" />&nbsp;
	<{assign var="categoryid" value=$category.id}>
<a href="javascript:<{ajax_update update_id='content' url='actions/index_action.php' method='get'  params="cat_id=$categoryid"}>"><{$category.name}></a>
        <ul style="list-style-image:url(images/question.gif);">

        <!-- start question loop -->
        <{foreach item=question from=$category.questions}>
	<{assign var="questionid" value=$question.id}>
          <li>&nbsp;<a href="javascript:<{ajax_update update_id='content' url='actions/index_action.php' method='get'  params="cat_id=$categoryid#q$questionid"}>"><{$question.title}></a></li>

        <{/foreach}>
        <!-- end question loop -->

        </ul>

      <{/foreach}>
      <!-- end category loop -->

    </td>
  </tr>
</table>